
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Epic Beta</title>

<link rel=StyleSheet href="/css/style1.css" type="text/css" media=screen>
</head>

<body>
<div id="header">
<div id="hinside">
<div id="logo">
	<a href="/index/index"><img src="/img/epicbeta.png" height="150px"/></a>
</div>
<div id="mainmenu">
    <ul>
        <li><a href="/index/allcontents">All contents</a></li>
        <li>|</li>
        <li><a href="<?php echo "/index/mycontents/username/".$this->username;?>">My contents</a> </li>
        <li>|</li>
        <li><a href="/index/faq">FAQ</a></li>
    </ul>
</div>
<div id="login">
<?php if($this->islogged){
	?>
		<b>Logout</b>
		<form action="/index/logout"  accept-charset="UTF-8" method="post" id="user-login">
		<div>
		<div class="form-login">
		<input type="submit" name="submit" id="submit" value="logout" />
		</div>
		</div></form>
		
	<?php 
}else{
	?>
	<b>Login</b>
		<form action="/index/login"  accept-charset="UTF-8" method="post" id="user-login">
		<div><div class="form-login">
		
		<div class="form-item">
		 <label for="edit-name">Username: <span class="form-required" title="This field is required."></span></label><br />
		 <input type="text" maxlength="25" name="username" id="username"  size="25" value="" tabindex="1" class="form-text required" />
		</div>
		<div class="form-item">
		 <label for="edit-pass">Password: <span class="form-required" title="This field is required."></span></label><br />
		 <input type="password" name="password" id="password"  size="25"  tabindex="2" class="form-text required" />
		</div>
		<input type="submit" name="submit" id="submit" value="login" />
		
		<i>or</i>
		<a href="/index/register">Sign up</a>
		</div>
		</div></form>
		<?php 
}?>
</div>
</div>
</div>
<?php echo $this->layout()->content; ?>

<div id="footer">
<div id="finside">
<div id="usermenu">
    <ul>

    </ul>
</div>
</div>
</div>
</body>
</html>